package com.fly.platform.vo

import java.io.Serializable

/**
 * @author Fly
 * 前后端交互数据标准
 */
 data class FlyResult<T> (

        /**
         * 成功标志
         */
        var success: Boolean? = false,

        /**
         * 消息
         */
        var message: String? = "",

        /**
         * 返回代码
         */
        var code: Int? = 200,

        /**
         * 时间戳
         */
        var timestamp: Long? = System.currentTimeMillis(),

        /**
         * 结果对象
         */
        var result: T? = null

) : Serializable {

    companion object {
        private const val serialVersionUID = 1L
    }
}